package com.itheima.inputStream;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @Author 王加鑫
 * @Date 2021/5/19 15:16
 * @Version 1.0
 */
public class Demo02 {
    public static void main(String[] args) throws IOException {
        FileInputStream fileInputStream = new FileInputStream("C:\\Users\\JiaXin\\Pictures\\Camera Roll\\3D绘画 女仆 美腿 黑丝 高跟鞋 两位女仆进门后的一幕 4k动漫壁纸_彼岸图网.jpg");
        FileOutputStream fileOutputStream = new FileOutputStream("day12_file&字节流");

        int b;
        while ((b = fileInputStream.read()) != -1){
            fileOutputStream.write(b);
        }

        fileInputStream.close();
        fileOutputStream.close();
    }
}
